package com.jf.cloud.service.sysmanager.support.connect;


import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;

/**
 * TODO  ���� �� ����
 * @author ouyang ����ʱ�䣺May 22, 2012 5:08:11 PM
 */
@SuppressWarnings("all")
public class ConnectionManager {
   
  public static MultiThreadedHttpConnectionManager manager = new MultiThreadedHttpConnectionManager();
  
  // ��ʼ�� ���ӳ� 
  static {
	  manager.setConnectionStaleCheckingEnabled(true);
	  
	  manager.getParams().setStaleCheckingEnabled(true); // ���ù��ڼ��
	  manager.getParams().setDefaultMaxConnectionsPerHost(1000); // Ĭ�����������
	  manager.getParams().setMaxTotalConnections(5000); // Ĭ�������������
	  manager.getParams().setConnectionTimeout(5000); // Ĭ�����ӳ�ʱ
	  manager.getParams().setSoTimeout(5000); // Ĭ�϶�ȡ��ʱ
  }
  
}
